package com.example.api.dao;

import com.example.api.model.entity.InventoryRecord;

import java.util.List;

public interface InventoryRecordDao {

    int deleteByPrimaryKey(Integer id);

    int insert(InventoryRecord record);

    int insertSelective(InventoryRecord record);

    InventoryRecord selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(InventoryRecord record);

    int updateByPrimaryKey(InventoryRecord record);

    List<InventoryRecord> findAllByType(Integer type);

    List<InventoryRecord> findAllByWid(Integer wid);

    List<InventoryRecord> findAllByCid(Integer cid);

    int updateNameByCid(String name, Integer cid);

    int deleteByCid(Integer cid);
    
}